﻿using System;
using System.Windows;

namespace InstantWatch {
	/// <summary>
	/// Interaction logic for AuthBrowser.xaml
	/// </summary>
	public partial class AuthBrowser : Window {

		public AuthBrowser() {
			InitializeComponent();
			this.Path = new Uri(@"https://api-user.netflix.com/oauth/login?oauth_token=9gbzgcbmefaq35hph5gs2m3s&oauth_consumer_key=6adupmtwsjhzf64rq9bgqgfd&application_name=Instant+Watch");
		}

		public AuthBrowser(Uri path)
			: this() {
			this.Path = path;
		}

		public Uri Path {
			get { return this.browser.Source; }
			set { this.browser.Source = value; }
		}

		private void okButton_Click(object sender, RoutedEventArgs e) {
			this.DialogResult = true;
		}

		private void cancelButton_Click(object sender, RoutedEventArgs e) {
			this.DialogResult = false;
		}

	}
}
